package cl.smartdev.soagov.model;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class Document {

    /**
     */
    @NotNull
    private String name;

    /**
     */
    @ManyToOne
    private DocumentType type;

    /**
     */
    @OneToOne
    private Service service;

    /**
     */
    @NotNull
    private Boolean exist;
}
